export const orderStateMap = {
  qx: '取消',
  xd: '待付款',
  dhx: '待核销',
  yhx: '已核销',
  dsp: '待审批',
  ybh: '已驳回',
  fk: '待发货',
  ck: '已发货',
  bfck: '部分发货',
  wc: '完成',
  ck: '待收货',
  tk: '退款中',
  ytk: '已退款'
}
export const orderTypeMap = {
  1: '预售', 2: '分货活动', 3: '零售'
}
export const orderPayTypeMap = {
  1: '审批', 2: '支付宝', 3: '微信', 4: '银联', 5: '钱包'
}
export const refundOrderStatusMap = {
  O: '待处理', N: '拒绝', Y: '同意'
}

export const addressDisplay = (item) => {
  return `${item.province || ''}${item.city || ''}${item.district || ''}${item.address || ''}`
}